<!-- 主体 -->
<div class="layui-container project-list-content" style="display:flex;flex-wrap:wrap;margin-top:10px;align-content: flex-start;">
    <!-- 遍历文集列表 -->
    <?php foreach($data as $id=>$book) { ?>
    <div class="layui-col-md3 layui-col-xs12 project-item">
        <a href="/books/<?php echo $book['alias']; ?>" title="test">
            <div class="layui-card">
                <div class="layui-card-header" >
                    <p class="layui-elip" style="font-weight: 700;"><i class="layui-icon layui-icon-circle-dot" style="color: #5FB878;"></i> <?php echo $book['title']; ?></p>
                </div>
                <div class="layui-card-body">
                    <table class="layui-table">
                        <colgroup>
                            <col width="50">
                            <col width="200">
                        </colgroup>
                        <tbody>
                        <tr>
                            <td>作者</td>
                            <td><?php echo $book['author']; ?></td>
                        </tr>
                        <tr>
                            <td>简介</td>
                            <td><?php echo $book['description']; ?></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </a>
    </div>
    <?php } ?>

</div>
<!-- 主体结束 -->